package cn.com.taiji.pos.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author
 * @since 2021-03-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SystemAclUser implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("ID")
    private String id;

    /**
     * 员工(卡)号(人工录入)
     */
    @TableField("LOGIN_NAME")
    private String loginName;

    /**
     * 员工卡号(串号读取)
     */
    @TableField("CARD_CODE")
    private String cardCode;

    /**
     * 密码
     */
    @TableField("PASSWORD")
    private String password;

    /**
     * 姓名
     */
    @TableField("NAME")
    private String name;

    /**
     * 性别(1:男(默认)0:女)
     */
    @TableField("MALE")
    private String male;

    /**
     * 姓名拼音
     */
    @TableField("NAME_PY")
    private String namePy;

    /**
     * 邮箱(不可重复)
     */
    @TableField("EMAIL")
    private String email;

    /**
     * 手机(不可重复)
     */
    @TableField("MOBILE")
    private String mobile;

    /**
     * 电话
     */
    @TableField("PHONE")
    private String phone;

    /**
     * 传真
     */
    @TableField("FAX")
    private String fax;

    /**
     * 地址
     */
    @TableField("ADDRESS")
    private String address;

    /**
     * 简历描述
     */
    @TableField("DESCRIPTION")
    private String description;

    /**
     * 用户状态(NORMAL:正常,INVALID:禁用)
     */
    @TableField("STATUS")
    private String status;

    /**
     * 创建人
     */
    @TableField("CREATOR_ID")
    private String creatorId;

    /**
     * 创建人姓名
     */
    @TableField("CREATOR_NAME")
    private String creatorName;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;


    //    临时字段
    @TableField(exist = false)
    private BigDecimal reserveAmount;
    @TableField(exist = false)
    private BigDecimal confirmAmount;
    @TableField(exist = false)
    private String reason;
    @TableField(exist = false)
    private String physicalCode;
    @TableField(exist = false)
    private String pw;
    @TableField(exist = false)
    private boolean tkAuthority = false;//退款权限
    @TableField(exist = false)
    private boolean czAuthority = false;//冲账权限

}
